Use CHECKED instead of ACTIVE for expanded expanders
authorBenjamin Otte <otte@redhat.com>
Wed, 27 Aug 2014 19:25:53 +0000 (21:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 27 Aug 2014 19:27:20 +0000 (21:27 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=733967

gtk/gtkexpander.c
gtk/gtkthemingengine.c
gtk/gtktoolitemgroup.c
gtk/gtktreeview.c

index dc2d4c2f439715f08adcbc231681ced0651cf979..e8bf4b8d9c1f3ba51fc454d295ce1334cf547ee7 100644 (file)
@@ -888,9 +888,9 @@ gtk_expander_paint (GtkExpander *expander,
 
   /* Set active flag as per the expanded state */
   if (priv->expanded)
-    state |= GTK_STATE_FLAG_ACTIVE;
+    state |= GTK_STATE_FLAG_CHECKED;
   else
-    state &= ~(GTK_STATE_FLAG_ACTIVE);
+    state &= ~(GTK_STATE_FLAG_CHECKED);
 
   gtk_style_context_set_state (context, state);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_EXPANDER);
index 1aa60113a0cf947d75d08eae815e7aa46c3df044..9248b907d4b97cca5b5a59199a08fe476446bc27 100644 (file)
@@ -1859,7 +1859,7 @@ gtk_theming_engine_render_expander (GtkThemingEngine *engine,
 
   is_rtl = (gtk_theming_engine_get_state (engine) & GTK_STATE_FLAG_DIR_RTL);
   line_width = 1;
-  progress = (flags & GTK_STATE_FLAG_ACTIVE) ? 1 : 0;
+  progress = (flags & GTK_STATE_FLAG_CHECKED) ? 1 : 0;
 
   if (!gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_HORIZONTAL))
     {
index 94a937b5f4852bb8e7d410f906d732b43df32cc1..94655b753688ad9a962313121a3e037692ecfa3d 100644 (file)
@@ -282,7 +282,7 @@ gtk_tool_item_group_header_draw_cb (GtkWidget *widget,
   state = gtk_widget_get_state_flags (widget);
 
   if (!priv->collapsed)
-    state |= GTK_STATE_FLAG_ACTIVE;
+    state |= GTK_STATE_FLAG_CHECKED;
 
   gtk_style_context_save (context);
   gtk_style_context_set_state (context, state);
index 48cdede79f10c1a7ead40b538be32b815d5cc6f3..da1526cb55a7bc227958d5f364c61ff0b3a2970c 100644 (file)
@@ -10279,9 +10279,9 @@ gtk_tree_view_draw_arrow (GtkTreeView *tree_view,
   state = gtk_cell_renderer_get_state (NULL, widget, flags);
 
   if (node->children != NULL)
-    state |= GTK_STATE_FLAG_ACTIVE;
+    state |= GTK_STATE_FLAG_CHECKED;
   else
-    state &= ~(GTK_STATE_FLAG_ACTIVE);
+    state &= ~(GTK_STATE_FLAG_CHECKED);
 
   gtk_style_context_save (context);